package com.ruoyi.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户信息#customer_info
 * @TableName customer_info
 */
public class CustomerInfo implements Serializable {
    /**
     * 客户主键#primary
     */
    private Integer customerId;

    /**
     * 证件类型#foreign#base_card_type=card_type_id,card_type_name
     */
    private Integer cardTypeId;

    /**
     * 等级主键#foreign#customer_level=level_id,level_name
     */
    private Integer levelId;

    /**
     * 用户昵称
     */
    private String customerNikename;

    /**
     * 证件号码
     */
    private String customerCardNo;

    /**
     * 手机号码
     */
    private String customerPhone;

    /**
     * 电子邮箱
     */
    private String customerEmail;

    /**
     * 性别#state#0=女,  1=男
     */
    private Integer customerSex;

    /**
     * 出生日期
     */
    private Date customerBirth;

    /**
     * 当前积分
     */
    private Integer customerPoint;

    /**
     * 当前余额
     */
    private Double customerMoney;

    /**
     * 注册时间
     */
    private Date customerRegisterTime;

    /**
     * 客户头像
     */
    private String customerFace;

    private static final long serialVersionUID = 1L;

    /**
     * 客户主键#primary
     */
    public Integer getCustomerId() {
        return customerId;
    }

    /**
     * 客户主键#primary
     */
    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    /**
     * 证件类型#foreign#base_card_type=card_type_id,card_type_name
     */
    public Integer getCardTypeId() {
        return cardTypeId;
    }

    /**
     * 证件类型#foreign#base_card_type=card_type_id,card_type_name
     */
    public void setCardTypeId(Integer cardTypeId) {
        this.cardTypeId = cardTypeId;
    }

    /**
     * 等级主键#foreign#customer_level=level_id,level_name
     */
    public Integer getLevelId() {
        return levelId;
    }

    /**
     * 等级主键#foreign#customer_level=level_id,level_name
     */
    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    /**
     * 用户昵称
     */
    public String getCustomerNikename() {
        return customerNikename;
    }

    /**
     * 用户昵称
     */
    public void setCustomerNikename(String customerNikename) {
        this.customerNikename = customerNikename;
    }

    /**
     * 证件号码
     */
    public String getCustomerCardNo() {
        return customerCardNo;
    }

    /**
     * 证件号码
     */
    public void setCustomerCardNo(String customerCardNo) {
        this.customerCardNo = customerCardNo;
    }

    /**
     * 手机号码
     */
    public String getCustomerPhone() {
        return customerPhone;
    }

    /**
     * 手机号码
     */
    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    /**
     * 电子邮箱
     */
    public String getCustomerEmail() {
        return customerEmail;
    }

    /**
     * 电子邮箱
     */
    public void setCustomerEmail(String customerEmail) {
        this.customerEmail = customerEmail;
    }

    /**
     * 性别#state#0=女,  1=男
     */
    public Integer getCustomerSex() {
        return customerSex;
    }

    /**
     * 性别#state#0=女,  1=男
     */
    public void setCustomerSex(Integer customerSex) {
        this.customerSex = customerSex;
    }

    /**
     * 出生日期
     */
    public Date getCustomerBirth() {
        return customerBirth;
    }

    /**
     * 出生日期
     */
    public void setCustomerBirth(Date customerBirth) {
        this.customerBirth = customerBirth;
    }

    /**
     * 当前积分
     */
    public Integer getCustomerPoint() {
        return customerPoint;
    }

    /**
     * 当前积分
     */
    public void setCustomerPoint(Integer customerPoint) {
        this.customerPoint = customerPoint;
    }

    /**
     * 当前余额
     */
    public Double getCustomerMoney() {
        return customerMoney;
    }

    /**
     * 当前余额
     */
    public void setCustomerMoney(Double customerMoney) {
        this.customerMoney = customerMoney;
    }

    /**
     * 注册时间
     */
    public Date getCustomerRegisterTime() {
        return customerRegisterTime;
    }

    /**
     * 注册时间
     */
    public void setCustomerRegisterTime(Date customerRegisterTime) {
        this.customerRegisterTime = customerRegisterTime;
    }

    /**
     * 客户头像
     */
    public String getCustomerFace() {
        return customerFace;
    }

    /**
     * 客户头像
     */
    public void setCustomerFace(String customerFace) {
        this.customerFace = customerFace;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CustomerInfo other = (CustomerInfo) that;
        return (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getCardTypeId() == null ? other.getCardTypeId() == null : this.getCardTypeId().equals(other.getCardTypeId()))
            && (this.getLevelId() == null ? other.getLevelId() == null : this.getLevelId().equals(other.getLevelId()))
            && (this.getCustomerNikename() == null ? other.getCustomerNikename() == null : this.getCustomerNikename().equals(other.getCustomerNikename()))
            && (this.getCustomerCardNo() == null ? other.getCustomerCardNo() == null : this.getCustomerCardNo().equals(other.getCustomerCardNo()))
            && (this.getCustomerPhone() == null ? other.getCustomerPhone() == null : this.getCustomerPhone().equals(other.getCustomerPhone()))
            && (this.getCustomerEmail() == null ? other.getCustomerEmail() == null : this.getCustomerEmail().equals(other.getCustomerEmail()))
            && (this.getCustomerSex() == null ? other.getCustomerSex() == null : this.getCustomerSex().equals(other.getCustomerSex()))
            && (this.getCustomerBirth() == null ? other.getCustomerBirth() == null : this.getCustomerBirth().equals(other.getCustomerBirth()))
            && (this.getCustomerPoint() == null ? other.getCustomerPoint() == null : this.getCustomerPoint().equals(other.getCustomerPoint()))
            && (this.getCustomerMoney() == null ? other.getCustomerMoney() == null : this.getCustomerMoney().equals(other.getCustomerMoney()))
            && (this.getCustomerRegisterTime() == null ? other.getCustomerRegisterTime() == null : this.getCustomerRegisterTime().equals(other.getCustomerRegisterTime()))
            && (this.getCustomerFace() == null ? other.getCustomerFace() == null : this.getCustomerFace().equals(other.getCustomerFace()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getCardTypeId() == null) ? 0 : getCardTypeId().hashCode());
        result = prime * result + ((getLevelId() == null) ? 0 : getLevelId().hashCode());
        result = prime * result + ((getCustomerNikename() == null) ? 0 : getCustomerNikename().hashCode());
        result = prime * result + ((getCustomerCardNo() == null) ? 0 : getCustomerCardNo().hashCode());
        result = prime * result + ((getCustomerPhone() == null) ? 0 : getCustomerPhone().hashCode());
        result = prime * result + ((getCustomerEmail() == null) ? 0 : getCustomerEmail().hashCode());
        result = prime * result + ((getCustomerSex() == null) ? 0 : getCustomerSex().hashCode());
        result = prime * result + ((getCustomerBirth() == null) ? 0 : getCustomerBirth().hashCode());
        result = prime * result + ((getCustomerPoint() == null) ? 0 : getCustomerPoint().hashCode());
        result = prime * result + ((getCustomerMoney() == null) ? 0 : getCustomerMoney().hashCode());
        result = prime * result + ((getCustomerRegisterTime() == null) ? 0 : getCustomerRegisterTime().hashCode());
        result = prime * result + ((getCustomerFace() == null) ? 0 : getCustomerFace().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", customerId=").append(customerId);
        sb.append(", cardTypeId=").append(cardTypeId);
        sb.append(", levelId=").append(levelId);
        sb.append(", customerNikename=").append(customerNikename);
        sb.append(", customerCardNo=").append(customerCardNo);
        sb.append(", customerPhone=").append(customerPhone);
        sb.append(", customerEmail=").append(customerEmail);
        sb.append(", customerSex=").append(customerSex);
        sb.append(", customerBirth=").append(customerBirth);
        sb.append(", customerPoint=").append(customerPoint);
        sb.append(", customerMoney=").append(customerMoney);
        sb.append(", customerRegisterTime=").append(customerRegisterTime);
        sb.append(", customerFace=").append(customerFace);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}